How to write a loop in PHP

173

for loop in php -

for($i = 0;$i < count($users);$i++) {

    if($users[$i]['user_id']==3){

        $userName = $users[$i]['first_name'];

    }

}

Comments

Submit
0 Comments